﻿namespace MyProject.Application;

public class SystemService : ISystemService, ITransient
{
    public string GetDescription()
    {

        var test1 = new TestDemo();
        test1.Name = "aa";
        test1.Dic = new Dictionary<string, string>();
        test1.Dic.Add("aaDD", "T1");
        test1.Dic.Add("ccDD", "T2");

        var d2 = test1.Adapt<TestDemo2>();

        // aaDD 会变成 aadd全是小写
        



        return "让 .NET 开发更简单，更通用，更流行。";
    }
}


public class TestDemo
{
    public string Name { get; set; }

    public Dictionary<string, string> Dic { get; set; }
}

public class TestDemo2
{
    public string Name { get; set; }

    public Dictionary<string, string> Dic { get; set; }
}